var aLayoutRoot = ui("aLayoutRoot");
var page = sm("do_Page");
var nf = sm("do_Notification");

var labelTitle = ui("labelTitle");
var labelBg = ui("labelBg");

//将SegmentView的数据通过key指定给Label的text属性
aLayoutRoot.setMapping({
	"labelTitle.text":"name",
	"labelTitle.fontColor":"fontColor",
	"labelBg.bgColor":"bgColor",
	"labelTitle.tag":"index"
});

aLayoutRoot.on("touch",function(){
	//点击一个cell再把索引传递回index.ui
	page.fire("seg_touch",labelTitle.tag);
})